<?php
switch($_POST["cmd"]) {
case "del_task":
	$pm->init($_POST["detail"], "|");
	$id = $pm->get("id");

	$network->send("cmd=task_del|id=$id\n");
	break;
case "priority":
	$pm->init($_POST["detail"], "|");
	$task_id = $pm->get("id");
	$priority = $pm->get("priority");

	$network->send("cmd=task_set|id=$task_id|data=priority|value=$priority\n");
	break;
case "curr_wb":
	setcookie("curr_wb", $_POST["detail"]);
	break;
}
?>
